<!doctype html>
<html>
<head>
    <include file="public/head"/>
    <title>Message list</title>
    <meta name="description" content="Message list">
    <meta name="keywords" content="Message list">
</head>
<body>
<div class="wrap js-check-wrap">
    <ul class="nav nav-tabs">
        <li class="active"><a>Message list</a></li>
    </ul>
    <form class="well form-inline margin-top-20" method="get" action="{:cmf_plugin_url('HzMsgBorad://AdminIndex/index');}">
        type:
        <select class="form-control" name="type" style="width: 140px;">
            <option value=''>all</option>
            <option value='1' <if condition="$type eq 1">selected=""</if>>Contact</option>
            <option value='2' <if condition="$type eq 2">selected=""</if>>Reservations</option>
            
        </select> &nbsp;&nbsp;
        Time:
        <input type="text" class="form-control js-bootstrap-datetime" name="start_time"
               value="{$start_time|default=''}"
               style="width: 140px;" autocomplete="off">-
        <input type="text" class="form-control js-bootstrap-datetime" name="end_time"
               value="{$end_time|default=''}"
               style="width: 140px;" autocomplete="off"> &nbsp; &nbsp;
        <input type="submit" class="btn btn-primary" value="search"/>
        <a class="btn btn-danger" href="{:cmf_plugin_url('HzMsgBorad://AdminIndex/index');}">empty</a>
    </form>
    <div class="common-form">
        <form method="post" class="js-ajax-form" action="#">
            <div class="table_list">
                <table width="100%" class="table table-hover table-bordered">
                    <thead>
                    <tr>
                        <th width="50">ID</th>
                        <th width="100">firstName</th>
                        <th width="100">lastName</th>
                        <th width="150">Phone</th>
                        <th width="150">Email</th>
                        <th width="150">Subject</th>
                        <th width="150">Date</th>
                        <th width="150">Voyage Package</th>
                        <th>Message</th>
                        <th width="120">CreateTime</th>
                    </tr>
                    </thead>
                    <tbody>
                    <foreach name="datas" item="vo">
                        <tr>
                            <td>{$vo.id}</td>
                            <td>{$vo.firstName}</td>
                            <td>{$vo.lastName}</td>
                            <td>{$vo.phone}</td>
                            <td>{$vo.email}</td>
                            <td>{$vo.title}</td>
                            <td>{$vo.date}</td>
                            <td>{$vo.cat_name}</td>
                            <td>{$vo.msg}</td>
                            <td>{$vo.createtime}</td>
                        </tr>
                    </foreach>
                    </tbody>
                </table>
                <ul class="pagination">{$page|default=''}</ul>
            </div>
        </form>
    </div>
</div>
<include file="public/scripts"/>
</body>
</html>